package com.beiing.tianshuai.tianshuai.home;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by LZQ on 2017/12/8.
 */

public class RecordSQLiteOpenHelper extends SQLiteOpenHelper {

    private static final String DATABASE_NAME = "search_history.db";
    private static final int SCHEMA_VERSION = 1;

    public RecordSQLiteOpenHelper(Context context) {
        super(context, DATABASE_NAME, null, SCHEMA_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table if not exists search_history(id integer primary key autoincrement, title varchar(200), type varchar(200), cover varchar(200), tName varchar(200))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
